
include $(top_srcdir)/Makefile.tool-tests.am

dist_noinst_SCRIPTS = \
	filter_scalar \
	filter_scalar_exit_group \
	filter_stderr

noinst_HEADERS = scalar.h

EXTRA_DIST = \
	bug133694.vgtest bug133694.stderr.exp bug133694.stdout.exp \
	int3-x86.vgtest int3-x86.stderr.exp int3-x86.stdout.exp \
	scalar.stderr.exp scalar.vgtest \
	scalar_fork.stderr.exp scalar_fork.vgtest \
	scalar_exit_group.stderr.exp \
	scalar_exit_group.vgtest \
	scalar_supp.stderr.exp \
	scalar_supp.vgtest scalar_supp.supp \
	scalar_vfork.stderr.exp scalar_vfork.vgtest \
	scalar_openat2.vgtest scalar_openat2.stderr.exp \
	shm.vgtest shm.stderr.exp

check_PROGRAMS = \
	bug133694 \
	int3-x86 \
	scalar scalar_exit_group scalar_fork scalar_supp scalar_vfork \
	shm

if HAVE_OPENAT2
check_PROGRAMS += scalar_openat2
endif

AM_CFLAGS    += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE)
AM_CXXFLAGS  += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE)
AM_CCASFLAGS += @FLAG_M32@

scalar_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
scalar_exit_group_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
if HAVE_OPENAT2
scalar_openat2_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
endif
scalar_supp_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
shm_CFLAGS = ${AM_CFLAGS} @FLAG_W_NO_UNINITIALIZED@

# Avoid linker warnings
int3_x86_LDFLAGS = @FLAG_NO_PIE@
